<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>产品供应商</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>供应商编码</th>
                    <th style="max-width:200px">供应商名称</th>
                    <th>最小起订量</th>
                    <th>供应商单价</th>
                    <th>自购单价</th>
                    <th>总采购单价</th>
                    <th>采购周期(天)</th>
                    <th>默认</th>
                </tr>
                </thead>
                <tbody>
                @if($relatedSkuSuppliers->isNotEmpty())
                @foreach($relatedSkuSuppliers as $item)
                    <tr>
                        <td>
                            <a href="/xqc/basics/supplier/{{ $item->supplier_id }}" target="_blank">{{ $item->code }}</a >
                        </td>
                        <td>{{ $item->name }}</td>
                        <td>{{ $item->moq }}</td>
                        <td>{{ $item->supplier_price }}</td>
                        <td>{{ round($item->unit_price - $item->supplier_price,3) }}</td>
                        <td>{{ $item->unit_price }}</td>
                        <td>{{ $item->purchase_cycle }}</td>
                        <td><span class="label label-{{ $item->status == 1 ? 'info' : 'default' }}">{{ $item->status == 1 ? '是' : '否' }}</span></td>
                    </tr>
                @endforeach
                @else
                    <tr><td colspan="6">未找到供应商信息</td></tr>
                @endif
                </tbody>
            </table>
        </div>
    </div>
</div>
